package com.victor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.victor.entity.address.Address;

@Mapper
public interface AddressDao {
	/**
	 * 删除
	 * @param id
	 * @return
	 */
    boolean deleteByPrimaryKey(Integer id);
    /**
     * 添加
     * @param record
     * @return
     */
    boolean insertSelective(Address record);

    Address selectByPrimaryKey(Integer id);
    /**
     * 修改
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(Address record);
    
    List<Address> selAll(String uid);
    /**
     * 默认地址
     * @param id
     * @param uid
     * @return
     */
	boolean updMoren(@Param("id")Integer id, @Param("uid") String uid);
	/**
	 * 查询默认地址
	 * @param uid
	 * @return
	 */
	Address selMoren(String uid);
}